package com.ruoyi.business.domain.fission;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.ruoyi.business.domain.wecom.TbWecomChatGroup;
import com.ruoyi.common.core.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.Date;

@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("tb_wecom_chat_group_fission_group_setting")
@ApiModel("群裂变活动群聊配置实体")
public class TbWecomChatGroupFissionGroupSetting extends BaseEntity {

    private static final long serialVersionUID = 1L;

    /**
     * 活动关联群聊主键
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @ApiModelProperty(value = "主键id")
    private Long id;

    /**
     * 群活码配置id
     */
    @ApiModelProperty(value = "群活码配置id")
    private String configId;

    /**
     * 活动id
     */
    @ApiModelProperty(value = "活动id")
    private Long fissionId;

    /**
     * 活动群聊排序
     */
    @ApiModelProperty(value = "活动群聊排序")
    private Integer chatGroupOrder;

    /**
     * 群二维码获取方式1:自动获取2:手动上传
     */
    @ApiModelProperty(value = "群二维码获取方式1:自动获取2:手动上传")
    private Integer chatQrCodeGetType;

    /**
     * 群聊id
     */
    @ApiModelProperty(value = "群聊id")
    private String chatId;

    /**
     * 群聊二维码
     */
    @ApiModelProperty(value = "群聊二维码 url")
    private String chatQrCode;

    /**
     * 入群二维码生成时间
     */
    @ApiModelProperty(value = "入群二维码生成时间")
    private Date chatQrCodeCreateTime;

    /**
     * 群成员上限
     */
    @ApiModelProperty(value = "群成员上限配置")
    private Integer userLimit;

    /**
     * 加入群聊欢迎语id
     */
    @ApiModelProperty(value = "加入群聊欢迎语id")
    private String groupWelcomeTemplateId;


    @ApiModelProperty(value = "群聊实体")
    @TableField(exist = false)
    private TbWecomChatGroup tbWecomChatGroup;

}
